feat(UI): change style of code-content, and add CommentSection#1079
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the code blob page by refining the code content style and introducing a new comment section for discussions. Key changes include the removal of the old tree view layout and inline editor toggle, addition of a CommentSection with its supporting components, and adjustments to code content padding.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| moon/apps/web/pages/[org]/code/blob/[...path].tsx | Removed unused tree view styling and inline editor toggle; added CommentSection and stubbed comment handlers. |
| moon/apps/web/components/CodeView/BlobView/CommentSection.tsx | Introduced a new CommentSection component with interface definitions and comment handling logic. |
| moon/apps/web/components/CodeView/BlobView/CommentItem.tsx | Added CommentItem component for displaying individual comments and their actions. |
| moon/apps/web/components/CodeView/BlobView/CommentEditor.tsx | Added CommentEditor component to handle comment input with markdown support. |
| moon/apps/web/components/CodeView/BlobView/CodeContent.tsx | Adjusted code content styling and removed the inline editor feature. |
benjamin-747
approved these changes
May 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1071
change style of code-content, and add CommentSection